home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Using QuickDrawGX in ODF
- Sent: 9/1/96 11:05 AM
- Received: 9/1/96 11:05 AM
- From: dwilson@best.com (Dave Wilson)
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List
-
-
- Scott,
-
- >I would like to draw text rotated on the Macintosh, and it appears that
- >QuickDrawGX is the only way to do so? However, in looking at GX and ODF, it
- >appears that if I want to render to the view, a bitmap shape, and other
- >such graphics contexts, I must create these contexts myself?
-
- In case it helps, you can take a look at my "GraphicsGX" sample in the
- Developer University folder that comes with ODF. There I create a
- viewContext for ODF drawing in one scope, and then a FW_CGraphicContextGX
- in another scope to draw with GX, as indicated below
-
-
- void CGraphicsGXFrame::Draw(etc.)
- {
- this->MyDrawWithODF(ev, odFacet, invalidShape);
- {
- FW_CGraphicContextGX gxContext(ev, odFacet, invalidShape);
- this->MyDrawGXBoxes(ev, gxContext);
- this->MyDrawGXText(ev, gxContext);
- }
- }
-
- >
- >Are both of my assertions above valid? Is there any easy way to use just
- >the text rendering part of GX and still keep using the existing ODF graphic
- >contexts? Does anyone know of some easier way to render text characters
- >that are rotated (I don't need the connected glyphs of GX, just the
- >individual characters)?
-
- GX is the only way I know of, and we are encouraged to use it with MacOS8
- in the future.
-
- -Dave
-
- Dave Wilson
- Personal Concepts
- 635 Wellsbury Way
- Palo Alto, CA 94306
- voice: 415-494-6763
- email: dwilson@best.com